package chapter11;

public class Day9 {
    public static void main(String[] args) {
        int[] a1 = {1,5,2,3,5,1,5};
        int[] a2 = {1,5,2,3,5,1,5};
        boolean flag = false;
        for (int i = 0; i < a1.length; i++) {
            for (int j = 0; j <a2.length ; j++) {
                if ((a1.length==a2.length)&&a1[i]==a2[j]){
                    System.out.println("相同");
                    flag = true;
                    return;
                }
            }
        }
        if (!flag){
            System.out.println("不相同");
        }
    }
}
